﻿import QtQuick 2.0
import Union.hw.Systimer 1.0

Item {
    property string localIP: "192.168.1.100"
	property bool startTesting: false
	property string machineDevName;
	property string testFileName; 


	function getTestcaseStr(testcaseModel, enabled){
        var retstr = "";

        if(false === startTesting){
			if(false === enabled)
				retstr += "<font color=green>等待设备连接</font>"
			else
				retstr += "<font color=green>等待开始测试</font>"
        }
		var testCounts = testcaseModel.count
        for(var i=0; i<testCounts; i++){
			retstr += "<br>" + testcaseModel.get(i).detail;
        }
        return retstr
    }
}
